package com.bsoft.develop.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @program: java-develop-demo
 * @description:
 * @author: hdh
 * @create: 2023:05:08 10:09
 */

@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "Hello java develop";
    }

    @GetMapping("/hhd")
    public String hdh() {

        return UUID.randomUUID().toString();
    }
}

//  script {
//          def  where = "${DEPLOY_WHERE}"
//          if(where=="bj-01"){
//          sh "echo 我帮你部署到你北京1区"
//          } else if(where =="sh-02"){
//          sh "echo 我帮你部署到上海2区"
//          }else {
//          sh "部署到其他"
//          }
//          }
